package com.coconet.gas.dao;

import com.coconet.gas.Mapper;
import com.coconet.gas.config.DbAnnotation;
import com.coconet.gas.constant.DataSourceConstants;
import com.coconet.gas.vo.Assets;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
@Repository
@DbAnnotation(DataSourceConstants.DS_KEY_SLAVE)
public interface AssetsMapper{
    List<String> getHosts(@Param("idList") List<Integer> idList);
    Assets getAsset(@Param("ip") String ip);
    void updateScore(@Param("ip")String host);
}